Skip to content

Comments

Migrate enrich.py to modular system#117

Merged
MarcOverIP merged 53 commits intooutflanknl:masterfrom
fastlorenzo:enrich-modules
Apr 8, 2021
Merged

Migrate enrich.py to modular system#117
MarcOverIP merged 53 commits intooutflanknl:masterfrom
fastlorenzo:enrich-modules

Conversation

@fastlorenzo
Copy link
Collaborator

@fastlorenzo fastlorenzo commented Nov 17, 2020

  • Enrich CS beacon data
  • Enrich redirector traffic with greynoise
  • Enrich redirector traffic with tor exit nodes
  • Enrich redirector traffic with IP list (iplist_unknown.conf)
  • Enrich redirector traffic with IP list (iplist_redteam.conf)
  • Enrich redirector traffic with IP list (iplist_customer.conf)
  • Enrich redirector traffic with IP list (iplist_alarmed.conf)
  • Enrichment to replace roguedomains.conf => To be done in another PR
  • Test enrich CS beacon data
  • Test enrich redirector traffic with greynoise
  • Test enrich redirector traffic with tor exit nodes
  • Test enrich redirector traffic with IP list (iplist_unknown.conf)
  • Test enrich redirector traffic with IP list (iplist_redteam.conf)
  • Test enrich redirector traffic with IP list (iplist_customer.conf)
  • Test enrich redirector traffic with IP list (iplist_alarmed.conf)
  • redteamdomains.conf => still to decide how to use it => To be done in another PR
  • Remove enrichment for known_testsystems.conf and known_sandboxes.conf
  • Add possibility to enable/disable enrichment modules (via config file)
  • Add possibility to configure run interval for enrichment and alarm modules (via config file)
  • Fix small errors in installer for dev run (don't run certbot in dev)

Fixes #108

@github-actions github-actions bot added docker Related to docker container builds elkserver Related to RedELK server components installer Related to RedELK installers labels Nov 17, 2020
@fastlorenzo
Copy link
Collaborator Author

@MarcOverIP @xychix could you already have a look at the proposed approach?

Regarding the iplist, I would get rid of the iplist config files from /etc/redek and move that to a specific index (iplist).
The different IPs can be then modified via python scripts (alarms, enrichment, Jupyter) or via the Kibana plugin (interface to be created)

@fastlorenzo
Copy link
Collaborator Author

@MarcOverIP @xychix could you already have a look at the proposed approach?

Regarding the iplist, I would get rid of the iplist config files from /etc/redek and move that to a specific index (iplist).
The different IPs can be then modified via python scripts (alarms, enrichment, Jupyter) or via the Kibana plugin (interface to be created)

As discussed, we'll keep the following iplist config files in sync with the related ES index:

  • rogue_useragents.conf
  • iplist_redteam.conf
  • redteamdomains.conf
  • iplist_customer.conf
  • iplist_alarmed.conf

@github-actions github-actions bot added the helpers Related to RedELK helper scripts label Mar 8, 2021
fastlorenzo and others added 17 commits March 30, 2021 23:01
Fetch LOGLEVEL from config.json for alarms.py
Signed-off-by: fastlorenzo <git@bernardi.be>
@lorenzo please do check if alarms.py matches with ones in your open PR. Further these are minor additions
Signed-off-by: fastlorenzo <git@bernardi.be>
Signed-off-by: fastlorenzo <git@bernardi.be>
Signed-off-by: fastlorenzo <git@bernardi.be>
Signed-off-by: fastlorenzo <git@bernardi.be>
Signed-off-by: fastlorenzo <git@bernardi.be>
Signed-off-by: fastlorenzo <git@bernardi.be>
Signed-off-by: fastlorenzo <git@bernardi.be>
@fastlorenzo fastlorenzo marked this pull request as ready for review March 31, 2021 22:11
@github-actions github-actions bot added the documentation Related to RedELK documentation label Mar 31, 2021
Signed-off-by: fastlorenzo <git@bernardi.be>
@fastlorenzo
Copy link
Collaborator Author

@MarcOverIP @xychix should be ready to be merged in master \o/

Signed-off-by: fastlorenzo <git@bernardi.be>
Signed-off-by: fastlorenzo <git@bernardi.be>
Signed-off-by: fastlorenzo <git@bernardi.be>
@MarcOverIP MarcOverIP merged commit 9b3899d into outflanknl:master Apr 8, 2021
@fastlorenzo fastlorenzo deleted the enrich-modules branch April 8, 2021 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Related to docker container builds documentation Related to RedELK documentation elkserver Related to RedELK server components helpers Related to RedELK helper scripts installer Related to RedELK installers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate enrich script to new modular system

2 participants